package com.mallcloud.mall.common.core.constant.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 密码是否加密传输
 */
@Getter
@AllArgsConstructor
public enum EncFlagTypeEnum {

	YES("1", "是"),
	NO("0", "否"),
	;

	private String type;
	private String description;

	public static String getDecs(String type) {
		return Arrays.stream(values()).filter(x -> x.getType().equals(type)).findFirst().get().getDescription();
	}

}
